FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83
ENV __doozer=update BUILD_RELEASE=202202160023.p0.gdf0b27d.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.gdf0b27d.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=df0b27d OS_GIT_VERSION=4.10.0-202202160023.p0.gdf0b27d.assembly.stream-df0b27d SOURCE_DATE_EPOCH=1642690654 SOURCE_GIT_COMMIT=df0b27de80cfaa3f01e8cf0210f3a8d0c9a248d9 SOURCE_GIT_TAG=v0.2.0-1077-gdf0b27de SOURCE_GIT_URL=https://github.com/openshift/cloud-provider-openstack 
WORKDIR /go/src/k8s.io/cloud-provider-openstack
COPY . .
RUN go build -o openstack-cloud-controller-manager ./cmd/openstack-cloud-controller-manager

FROM openshift/ose-base:v4.10.0.20220216.010142
ENV __doozer=update BUILD_RELEASE=202202160023.p0.gdf0b27d.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.gdf0b27d.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=df0b27d OS_GIT_VERSION=4.10.0-202202160023.p0.gdf0b27d.assembly.stream-df0b27d SOURCE_DATE_EPOCH=1642690654 SOURCE_GIT_COMMIT=df0b27de80cfaa3f01e8cf0210f3a8d0c9a248d9 SOURCE_GIT_TAG=v0.2.0-1077-gdf0b27de SOURCE_GIT_URL=https://github.com/openshift/cloud-provider-openstack 

COPY --from=0 /go/src/k8s.io/cloud-provider-openstack/openstack-cloud-controller-manager /usr/bin/

ENTRYPOINT ["/usr/bin/openstack-cloud-controller-manager"]

LABEL \
        License="ASL 2.0" \
        io.k8s.description="This is a component of OpenShift Container Platform and provides Openstack Cloud Controller Manager" \
        io.k8s.display-name="OpenShift Openstack Cloud Controller Manager" \
        io.openshift.tags="openshift,cloud-controller-manager,openstack" \
        vendor="Red Hat" \
        name="openshift/ose-openstack-cloud-controller-manager" \
        com.redhat.component="ose-openstack-cloud-controller-manager-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Installer" \
        io.openshift.maintainer.subcomponent="OpenShift on OpenStack" \
        release="202202160023.p0.gdf0b27d.assembly.stream" \
        io.openshift.build.commit.id="df0b27de80cfaa3f01e8cf0210f3a8d0c9a248d9" \
        io.openshift.build.source-location="https://github.com/openshift/cloud-provider-openstack" \
        io.openshift.build.commit.url="https://github.com/openshift/cloud-provider-openstack/commit/df0b27de80cfaa3f01e8cf0210f3a8d0c9a248d9" \
        version="v4.10.0"

